
$('/', function(form, e){
	this.render("index");
});

$('/login', function(form, e){
	if(form.fields.username == "Cyrus" && form.fields.password == "qwerty123456"){
		this.send({"success": true, "message": "Login successful!"});
	}else{
		this.send({"success": false, "message": "Username or password fail!"})
	}
});
